package org.mixed.script.modules.db;

import org.mixed.script.annotation.Comment;
import org.mixed.script.annotation.Module;
import org.mixed.script.modules.db.table.Table;

import java.util.List;
import java.util.Map;

@Module("db")
public class DBModule {
    @Comment("指定table，进行单表操作")
    public Table table(@Comment(name = "tableName", value = "表名") String tableName) {
        return new Table(tableName, this);
    }

    public List<Map<String, Object>> select() {
        return null;
    }

    public Map<String, Object> selectOne() {
        return null;
    }
}
